package com.lemon.play.goai.posjudge.util;

public class Pair<F, S> {

	public Pair(){
		this(null,null);
	}
	
	public Pair(F first,S second){
		this.first=first;
		this.second=second;
	}
	
	public F getFirst(){
		return this.first;
	}
	
	public S getSecond(){
		return this.second;
	}
	
	public void setFirst(F first){
		this.first=first;
	}
	
	public void setSecond(S second){
		this.second=second;
	}
	
	@Override
	public String toString(){
		StringBuilder builder=new StringBuilder("<Pair package=\"com.darklight.util\">\n<First>\n\t");
		builder.append(first.toString().replaceAll("\n", "\t\n"));
		builder.append("\n<First/>\n<Second>\n\t");
		builder.append(second.toString());
		builder.append("\n<Second/>\n<Pair/>");
		return builder.toString();
	}
	
	public F first;
	public S second;
}
